/*
 * XML Type:  type-specific
 * Namespace: 
 * Java type: com.guardianapis.api.domain.xmlbeans.TypeSpecific
 *
 * Automatically generated - do not modify.
 */
package com.guardianapis.api.domain.xmlbeans.impl;
/**
 * An XML type-specific(@).
 *
 * This is a complex type.
 */
public class TypeSpecificImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.guardianapis.api.domain.xmlbeans.TypeSpecific
{
    private static final long serialVersionUID = 1L;
    
    public TypeSpecificImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BODY$0 = 
        new javax.xml.namespace.QName("", "body");
    private static final javax.xml.namespace.QName DURATIONMINUTES$2 = 
        new javax.xml.namespace.QName("", "duration-minutes");
    private static final javax.xml.namespace.QName DURATIONSECONDS$4 = 
        new javax.xml.namespace.QName("", "duration-seconds");
    private static final javax.xml.namespace.QName SHOWNOTES$6 = 
        new javax.xml.namespace.QName("", "show-notes");
    private static final javax.xml.namespace.QName ALTTEXT$8 = 
        new javax.xml.namespace.QName("", "alt-text");
    private static final javax.xml.namespace.QName PICTURECOUNT$10 = 
        new javax.xml.namespace.QName("", "picture-count");
    private static final javax.xml.namespace.QName CAPTION$12 = 
        new javax.xml.namespace.QName("", "caption");
    private static final javax.xml.namespace.QName CLASS1$14 = 
        new javax.xml.namespace.QName("", "class");
    
    
    /**
     * Gets the "body" element
     */
    public java.lang.String getBody()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BODY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "body" element
     */
    public org.apache.xmlbeans.XmlString xgetBody()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BODY$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "body" element
     */
    public boolean isSetBody()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BODY$0) != 0;
        }
    }
    
    /**
     * Sets the "body" element
     */
    public void setBody(java.lang.String body)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BODY$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BODY$0);
            }
            target.setStringValue(body);
        }
    }
    
    /**
     * Sets (as xml) the "body" element
     */
    public void xsetBody(org.apache.xmlbeans.XmlString body)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BODY$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BODY$0);
            }
            target.set(body);
        }
    }
    
    /**
     * Unsets the "body" element
     */
    public void unsetBody()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BODY$0, 0);
        }
    }
    
    /**
     * Gets the "duration-minutes" element
     */
    public int getDurationMinutes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DURATIONMINUTES$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "duration-minutes" element
     */
    public org.apache.xmlbeans.XmlInt xgetDurationMinutes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(DURATIONMINUTES$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "duration-minutes" element
     */
    public boolean isSetDurationMinutes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DURATIONMINUTES$2) != 0;
        }
    }
    
    /**
     * Sets the "duration-minutes" element
     */
    public void setDurationMinutes(int durationMinutes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DURATIONMINUTES$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DURATIONMINUTES$2);
            }
            target.setIntValue(durationMinutes);
        }
    }
    
    /**
     * Sets (as xml) the "duration-minutes" element
     */
    public void xsetDurationMinutes(org.apache.xmlbeans.XmlInt durationMinutes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(DURATIONMINUTES$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(DURATIONMINUTES$2);
            }
            target.set(durationMinutes);
        }
    }
    
    /**
     * Unsets the "duration-minutes" element
     */
    public void unsetDurationMinutes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DURATIONMINUTES$2, 0);
        }
    }
    
    /**
     * Gets the "duration-seconds" element
     */
    public int getDurationSeconds()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DURATIONSECONDS$4, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "duration-seconds" element
     */
    public org.apache.xmlbeans.XmlInt xgetDurationSeconds()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(DURATIONSECONDS$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "duration-seconds" element
     */
    public boolean isSetDurationSeconds()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DURATIONSECONDS$4) != 0;
        }
    }
    
    /**
     * Sets the "duration-seconds" element
     */
    public void setDurationSeconds(int durationSeconds)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DURATIONSECONDS$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DURATIONSECONDS$4);
            }
            target.setIntValue(durationSeconds);
        }
    }
    
    /**
     * Sets (as xml) the "duration-seconds" element
     */
    public void xsetDurationSeconds(org.apache.xmlbeans.XmlInt durationSeconds)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(DURATIONSECONDS$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(DURATIONSECONDS$4);
            }
            target.set(durationSeconds);
        }
    }
    
    /**
     * Unsets the "duration-seconds" element
     */
    public void unsetDurationSeconds()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DURATIONSECONDS$4, 0);
        }
    }
    
    /**
     * Gets the "show-notes" element
     */
    public java.lang.String getShowNotes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SHOWNOTES$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "show-notes" element
     */
    public org.apache.xmlbeans.XmlString xgetShowNotes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SHOWNOTES$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "show-notes" element
     */
    public boolean isSetShowNotes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SHOWNOTES$6) != 0;
        }
    }
    
    /**
     * Sets the "show-notes" element
     */
    public void setShowNotes(java.lang.String showNotes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SHOWNOTES$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SHOWNOTES$6);
            }
            target.setStringValue(showNotes);
        }
    }
    
    /**
     * Sets (as xml) the "show-notes" element
     */
    public void xsetShowNotes(org.apache.xmlbeans.XmlString showNotes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SHOWNOTES$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SHOWNOTES$6);
            }
            target.set(showNotes);
        }
    }
    
    /**
     * Unsets the "show-notes" element
     */
    public void unsetShowNotes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SHOWNOTES$6, 0);
        }
    }
    
    /**
     * Gets the "alt-text" element
     */
    public java.lang.String getAltText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALTTEXT$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "alt-text" element
     */
    public org.apache.xmlbeans.XmlString xgetAltText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ALTTEXT$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "alt-text" element
     */
    public boolean isSetAltText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ALTTEXT$8) != 0;
        }
    }
    
    /**
     * Sets the "alt-text" element
     */
    public void setAltText(java.lang.String altText)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ALTTEXT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ALTTEXT$8);
            }
            target.setStringValue(altText);
        }
    }
    
    /**
     * Sets (as xml) the "alt-text" element
     */
    public void xsetAltText(org.apache.xmlbeans.XmlString altText)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ALTTEXT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ALTTEXT$8);
            }
            target.set(altText);
        }
    }
    
    /**
     * Unsets the "alt-text" element
     */
    public void unsetAltText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ALTTEXT$8, 0);
        }
    }
    
    /**
     * Gets the "picture-count" element
     */
    public int getPictureCount()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTURECOUNT$10, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "picture-count" element
     */
    public org.apache.xmlbeans.XmlInt xgetPictureCount()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PICTURECOUNT$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "picture-count" element
     */
    public boolean isSetPictureCount()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PICTURECOUNT$10) != 0;
        }
    }
    
    /**
     * Sets the "picture-count" element
     */
    public void setPictureCount(int pictureCount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTURECOUNT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PICTURECOUNT$10);
            }
            target.setIntValue(pictureCount);
        }
    }
    
    /**
     * Sets (as xml) the "picture-count" element
     */
    public void xsetPictureCount(org.apache.xmlbeans.XmlInt pictureCount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(PICTURECOUNT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(PICTURECOUNT$10);
            }
            target.set(pictureCount);
        }
    }
    
    /**
     * Unsets the "picture-count" element
     */
    public void unsetPictureCount()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PICTURECOUNT$10, 0);
        }
    }
    
    /**
     * Gets the "caption" element
     */
    public java.lang.String getCaption()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CAPTION$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "caption" element
     */
    public org.apache.xmlbeans.XmlString xgetCaption()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CAPTION$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "caption" element
     */
    public boolean isSetCaption()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CAPTION$12) != 0;
        }
    }
    
    /**
     * Sets the "caption" element
     */
    public void setCaption(java.lang.String caption)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CAPTION$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CAPTION$12);
            }
            target.setStringValue(caption);
        }
    }
    
    /**
     * Sets (as xml) the "caption" element
     */
    public void xsetCaption(org.apache.xmlbeans.XmlString caption)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CAPTION$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CAPTION$12);
            }
            target.set(caption);
        }
    }
    
    /**
     * Unsets the "caption" element
     */
    public void unsetCaption()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CAPTION$12, 0);
        }
    }
    
    /**
     * Gets the "class" attribute
     */
    public java.lang.String getClass1()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASS1$14);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "class" attribute
     */
    public org.apache.xmlbeans.XmlString xgetClass1()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASS1$14);
            return target;
        }
    }
    
    /**
     * True if has "class" attribute
     */
    public boolean isSetClass1()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(CLASS1$14) != null;
        }
    }
    
    /**
     * Sets the "class" attribute
     */
    public void setClass1(java.lang.String class1)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASS1$14);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASS1$14);
            }
            target.setStringValue(class1);
        }
    }
    
    /**
     * Sets (as xml) the "class" attribute
     */
    public void xsetClass1(org.apache.xmlbeans.XmlString class1)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CLASS1$14);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CLASS1$14);
            }
            target.set(class1);
        }
    }
    
    /**
     * Unsets the "class" attribute
     */
    public void unsetClass1()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(CLASS1$14);
        }
    }
}
